package com.meihua.shellapp.fragment;


import android.content.Intent;
import android.view.View;
import android.widget.ImageView;

import com.meihua.shellapp.R;
import com.meihua.shellapp.activity.CommonProblemActivity;
import com.meihua.shellapp.activity.OnLineCustomerActivity;
import com.meihua.shellapp.activity.OnLineQueryActivity;
import com.meihua.shellapp.base.BaseFragment;
import com.meihua.shellapp.utils.ToastUtils;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * 创客 咨询服务
 */
public class QueryFragment extends BaseFragment {

    @Bind(R.id.query_question)
    ImageView queryQuestion;
    @Bind(R.id.query_message)
    ImageView queryMessage;
    @Bind(R.id.query_online_q)
    ImageView queryOnlineQ;

    @Override
    protected int getLayoutResource() {
        return R.layout.fragment_query;
    }

    @Override
    protected void initView() {
    }

    @OnClick({R.id.query_question, R.id.query_message, R.id.query_online_q})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.query_question:
                  /*常见问题*/
                startActivity(new Intent(getActivity(), CommonProblemActivity.class));
                break;
            case R.id.query_message:
                 /*留言反馈*/
                startActivity(new Intent(getActivity(), OnLineQueryActivity.class));
                break;
            case R.id.query_online_q:
                ToastUtils.getInstance().showToast("暂缓开通");
                /*在线客服*/
//                startActivity(new Intent(getActivity(),OnLineCustomerActivity.class));
                break;
        }
    }
}